package com.groupbuying.store.dao.agent;



import com.groupbuying.store.domain.agent.StoreAgentAccountDO;
import com.groupbuying.store.dto.forManage.StoreOperDTO;
import com.groupbuying.store.dto.forManage.StoreShopManagePageDTO;
import com.groupbuying.store.utils.Query;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 服务商账号表
 * @author WANGNIGN
 * @email wyn20140226@aliyun.com
 * @date 2019-07-23 10:24:23
 * @des
 */

@Mapper
@Repository
public interface StoreAgentAccountDao {

	StoreAgentAccountDO get(String accountId);
	
	List<StoreAgentAccountDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreAgentAccountDO storeAccount);
	
	int update(StoreAgentAccountDO storeAccount);
	
	int remove(String account_id);
	
	int batchRemove(String[] accountIds);
	//更新一条数据
	int updateStatus(Map<String, Object> condMap);
	/**
	 * 门店查询运营人员
	 * @param query
	 * @return
	 */
	List<StoreOperDTO> getStoreOpersList(Query query);

	/**
	 * 门店查询管理列表页
	 * @param query
	 * @return
	 */
	List<StoreShopManagePageDTO> getListByManagePage(Query query);

	/**
	 * 门店查询管理列表数量
	 * @param query 查询参数
	 * @return  数量
	 */
    int getListByManageCount(Query query);
}
